package com.zhentao.model.common.pojo.coupon;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 优惠券模板表
 * @TableName coupon_template
 */
@TableName(value ="coupon_template")
@Data
public class CouponTemplate implements Serializable {
    /**
     * 表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 优惠券名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 优惠券实值
     */
    @TableField(value = "value")
    private BigDecimal value;

    /**
     * 创建人ID
     */
    @TableField(value = "creator_id")
    private Integer creatorId;

    /**
     * 优惠券状态 (1: 启用, 0: 禁用)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
